package com.fenghongzhang.module_user.model;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "Teacher")
public class Teacher {
    @PrimaryKey
    @NonNull  // 确保非空约束
    @ColumnInfo(name = "uid")
    private Integer uid;  // 或使用基本类型 int（自动 notNull）

    @ColumnInfo(name = "first_name")
    private String firstName;

    @ColumnInfo(name = "last_name")
    private String lastName;

    @NonNull
    public Integer getUid() {
        return uid;
    }

    public void setUid(@NonNull Integer uid) {
        this.uid = uid;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}